xen.git
20 years agoClean up #include in init-xen.h.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:55:29 +0000 (22:55 +0100)]
Clean up #include in init-xen.h.

Signed-off-by: Muli Ben-Yehuda <mulix@mulix.org>
20 years agoThe following patch adds support to vmxassist for SYSLINUX/ISOLINUX. This
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:50:48 +0000 (22:50 +0100)]
The following patch adds support to vmxassist for SYSLINUX/ISOLINUX. This
enables you to install SLES-10 as an unmodified guest.

Notice that at this time, vmxassist does not support the graphic bootstrap
loader (gfxboot), so be sure the set "stdvga=1" in your configuration file
to prevent gfxboot from kicking in (or hit SHIFT really fast).

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoFix a build problem when enabling XEN_SYSFS on xen/ia64.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 21:48:04 +0000 (22:48 +0100)]
Fix a build problem when enabling XEN_SYSFS on xen/ia64.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agoThe patch fixes a problem when testing for device /dev/tpm0. The API
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 17:57:23 +0000 (18:57 +0100)]
The patch fixes a problem when testing for device /dev/tpm0. The API
call os.path.exists() must be called instead of os.path.isfile().

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
20 years agoNanosecs not usecs in a time comment.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 14:40:54 +0000 (15:40 +0100)]
Nanosecs not usecs in a time comment.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago'permitted_clock_jitter' units are nanoseconds not microseconds.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 14:10:26 +0000 (15:10 +0100)]
'permitted_clock_jitter' units are nanoseconds not microseconds.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove import of xen.lowlevel.xc, left over from when ballooning was done here
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:45:59 +0000 (12:45 +0100)]
Remove import of xen.lowlevel.xc, left over from when ballooning was done here
(moved to the server in December).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoProtect cleanupDomain with the refresh_shutdown_lock. This stops the device
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:41:33 +0000 (12:41 +0100)]
Protect cleanupDomain with the refresh_shutdown_lock.  This stops the device
and watch teardown being run concurrently from multiple threads, silencing
the No such file or directory error when tearing down the control/shutdown
watch, and reducing load on the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:26:38 +0000 (12:26 +0100)]
Merged.

20 years agoOnly send the OFFLINE hotplug event if be->netif is set. Firstly, this ensures
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:25:23 +0000 (12:25 +0100)]
Only send the OFFLINE hotplug event if be->netif is set.  Firstly, this ensures
that OFFLINE is only sent if the ONLINE event has been sent.  Secondly, this
fixes one possible cause of the reopened bug #549 as it prevents be->netif
being dereferenced inside netback_uevent.  Early reports suggest that this is
not the only cause of #549, so that bug remains open for now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix the implicit declaration of function `swiotlb_init' warning, by including
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 11:21:08 +0000 (12:21 +0100)]
Fix the implicit declaration of function `swiotlb_init' warning, by including
the appropriate headers.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoCreates a module that exports Xen Hypervisor attributes to sysfs. The
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 11:17:19 +0000 (12:17 +0100)]
Creates a module that exports Xen Hypervisor attributes to sysfs. The
module has a tri-state configuration so it can be a loadable module.

Views the hypervisor as hardware device, uses sysfs as  a scripting
interface for user space tools that need these attributes.

Some user space apps, particularly for systems management, need to
know if their kernel is running in a virtual machine and if so in
what type of virtual machine. This property is contained in the
file /sys/hypervisor/type.

The file hypervisor_sysfs.c creates a generic  hypervisor subsystem
that can be linked to by any hypervisor. The file xen_sysfs.c exports
the xen-specific attributes.

Signed-off-by: Mike D. Day <ncmike@us.ibm.com>
20 years agoIncrease timeout while waiting for console/tty node to appear in the store:
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:56:11 +0000 (11:56 +0100)]
Increase timeout while waiting for console/tty node to appear in the store:
the intention appears to have been 500msec, but struct timeval when used with
a select() is in usec, not msec.  The timeout has been set to 250msec (500msec
seems a little long, in any case).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoBreak out common parts of vtpm tests into new vtpm_utils library.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:49:29 +0000 (11:49 +0100)]
Break out common parts of vtpm tests into new vtpm_utils library.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:44:56 +0000 (11:44 +0100)]
Merged.

20 years agoStop the domain at the end of the test.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:44:18 +0000 (11:44 +0100)]
Stop the domain at the end of the test.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:43:44 +0000 (11:43 +0100)]
Merged.

20 years agoSince we now have general rules to build ALL_OBJS, we don't need to manually
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:42:39 +0000 (11:42 +0100)]
Since we now have general rules to build ALL_OBJS, we don't need to manually
build them. Compile-tested on x86 and PPC. Should work on IA64 too.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:42:08 +0000 (11:42 +0100)]
Merged.

20 years agoAdd a.out files to mercurial ignore list.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:40:41 +0000 (11:40 +0100)]
Add a.out files to mercurial ignore list.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdded -u flag (unsafe) to runtest.sh, to skip the sanity checks. This improves
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 10:39:09 +0000 (11:39 +0100)]
Added -u flag (unsafe) to runtest.sh, to skip the sanity checks.  This improves
turnaround when developing tests.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUpdate xen/ia64 to use the new build system. Fixes the ia64 build.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:38:50 +0000 (11:38 +0100)]
Update xen/ia64 to use the new build system. Fixes the ia64 build.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agoFix a bug, and also fixes the build with some gcc4 versions.
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:34:41 +0000 (11:34 +0100)]
Fix a bug, and also fixes the build with some gcc4 versions.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThe current ptrace code is traversing the page table structures to
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:29:17 +0000 (11:29 +0100)]
The current ptrace code is traversing the page table structures to
guest guest physical address, even when the guest paging is disabled.
The gdbserver-xen tries to access guest pdes & ptes to map memory of
hvm guest being debugged; and it gets a seg-fault because guest has not
setup it's paging yet. The attached patch adds guest paging state check,
so that the map_domain_va() can get the correct guest physical address
from guest va.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
20 years agoNew SMP IPI interface function called on_selected_cpus(), currently implemented
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Mar 2006 10:28:03 +0000 (11:28 +0100)]
New SMP IPI interface function called on_selected_cpus(), currently implemented
only for x86. The x86 implementation of smp_call_function has been simplified
and is now based on on_slected_cpus().

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoPut 03_vtpm-susp_res.py in its rightful place.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 08:53:00 +0000 (09:53 +0100)]
Put 03_vtpm-susp_res.py in its rightful place.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoTest suspend and resume cycles of the TPM front- and backend.
emellor@leeni.uk.xensource.com [Tue, 21 Mar 2006 00:28:29 +0000 (01:28 +0100)]
Test suspend and resume cycles of the TPM front- and backend.
Now that sysfs is mounted in the RAM disk of the test environment, the
test code does not need to do this anymore. This patch also simplifies
previous tests and the APIs used there. If prerequisites are not met
(vtpm manager not running) the patch will 'skip'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
20 years agoAdd an option to xmtest to report results to an alternative results repository.
pl@us.ibm.com [Tue, 21 Mar 2006 00:19:24 +0000 (01:19 +0100)]
Add an option to xmtest to report results to an alternative results repository.
The default is preserved but can be overridden by either passing it with -r to runtest.sh or by setting the xmtest_repo environment variable.

Signed-off-by: Paul Larson <pl@us.ibm.com>
20 years agoMake sure the check to see if device is in use doesn't happen. We need
stekloff@elm3b49.beaverton.ibm.com [Tue, 21 Mar 2006 00:13:14 +0000 (01:13 +0100)]
Make sure the check to see if device is in use doesn't happen. We need
to share disk.imgs. Qemu doesn't honor the 'r' read-only value.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
20 years agoRemove obsolete startNow() method from XmTestDomain object.
stekloff@elm3b49.beaverton.ibm.com [Tue, 21 Mar 2006 00:11:18 +0000 (01:11 +0100)]
Remove obsolete startNow() method from XmTestDomain object.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
20 years agoAdd mounting /sys for 2.6 xm-test images.
stekloff@dyn9047022152.beaverton.ibm.com [Tue, 21 Mar 2006 00:10:46 +0000 (01:10 +0100)]
Add mounting /sys for 2.6 xm-test images.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
20 years agoPatch to correct inconsistencies of xm-test reporting.
root@dyn9047022116.beaverton.ibm.com [Tue, 21 Mar 2006 00:08:59 +0000 (01:08 +0100)]
Patch to correct inconsistencies of xm-test reporting.

Signed-off-by: Woody Marvel <marvel@us.ibm.com>
20 years agoUpdate to Linux 2.6.16.
cl349@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 20:10:17 +0000 (20:10 +0000)]
Update to Linux 2.6.16.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch => patches/linux-2.6.16/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc6/net-csum.patch => patches/linux-2.6.16/net-csum.patch
rename : patches/linux-2.6.16-rc6/pmd-shared.patch => patches/linux-2.6.16/pmd-shared.patch
rename : patches/linux-2.6.16-rc6/smp-alts.patch => patches/linux-2.6.16/smp-alts.patch

20 years agoAdd missing empty ia64 files.
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 17:38:50 +0000 (18:38 +0100)]
Add missing empty ia64 files.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSome more build-system finessing:
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 17:36:35 +0000 (18:36 +0100)]
Some more build-system finessing:
 1. subdirs-y -> subdir-y (match Linux name, and also obj-y
    is singular so this makes sense).
 2. subdirs can be declared with or without trailing slash
 3. As with Linux, subdirs can be declared in the obj-y list
    but they must be distinguished by a trailing slash

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix Xen target image dependencies.
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 17:25:01 +0000 (18:25 +0100)]
Fix Xen target image dependencies.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix 64-bit build.
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 17:20:44 +0000 (18:20 +0100)]
Fix 64-bit build.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUpgrade genapic code to 2.6.16-rc6 codebase. Remove entries from
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 16:01:16 +0000 (17:01 +0100)]
Upgrade genapic code to 2.6.16-rc6 codebase. Remove entries from
genapic structure that Xen does not require (mostly because we do
not support Visual Workstation nor IBM/Sequent NUMA-Q).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix a protocol violation in the pcnet emulation. Tested on at least
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 11:01:32 +0000 (12:01 +0100)]
Fix a protocol violation in the pcnet emulation.  Tested on at least
two systems and fixes the 'corrupt MAC' with scp or sftp.  See bug 574
for more information.

Signed-off-by: Don Fry <brazilnut@us.ibm.com>
20 years agoAdd poll() support to xenbus device file.
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 11:00:58 +0000 (12:00 +0100)]
Add poll() support to xenbus device file.

From: Gerd Hoffmann
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Mon, 20 Mar 2006 08:56:54 +0000 (09:56 +0100)]
Merged.

20 years agoRemove unused, broken, redundant and undocumented option xm create -L.
emellor@leeni.uk.xensource.com [Mon, 20 Mar 2006 08:56:46 +0000 (09:56 +0100)]
Remove unused, broken, redundant and undocumented option xm create -L.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix VMX guest can not be created on PAE xen with more than 4G RAM.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 17:55:46 +0000 (18:55 +0100)]
Fix VMX guest can not be created on PAE xen with more than 4G RAM.
Also change v_end type from unsigned long to unsigned long long, for we
will have PAE VMX guest with more than 4G memory on PAE xen.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoThis patch fix HVM/VMX time resolution issue that cause IA32E complain
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 17:52:20 +0000 (18:52 +0100)]
This patch fix HVM/VMX time resolution issue that cause IA32E complain
"loss tick" occationally and APIC time calibration issue.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
20 years agoAbstract some details of context switching into ctxt_switch_from/to
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 16:10:20 +0000 (17:10 +0100)]
Abstract some details of context switching into ctxt_switch_from/to
function hooks. Allows neater separation between paravirtual and
HVM code paths.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMove arch/x86 to new build system.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 14:17:50 +0000 (15:17 +0100)]
Move arch/x86 to new build system.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoApply Xen build system changes to all non-arch subdirectories.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 13:02:18 +0000 (14:02 +0100)]
Apply Xen build system changes to all non-arch subdirectories.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoConditionalize building the Xen ACPI driver.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 12:13:35 +0000 (13:13 +0100)]
Conditionalize building the Xen ACPI driver.

Also introduces some cleanups to the Xen build system.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix VMX EFER write logic. Also some cleanups.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 11:48:51 +0000 (12:48 +0100)]
Fix VMX EFER write logic. Also some cleanups.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoAdd back hvm guest apm support and fixed the original apm issues to
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 11:41:28 +0000 (12:41 +0100)]
Add back hvm guest apm support and fixed the original apm issues to
make "halt -p" and "shutdown -h now" work. Also added apm 0x05 CPU
idle, 0x08 Enable PM and 0x0f apm engage/disengage subfunctions.

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
20 years agolinux-x86_64: Sync with native.
cl349@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 16:30:20 +0000 (16:30 +0000)]
linux-x86_64: Sync with native.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix a race that crash domU by calling xenbus_probe twice if it receive event
vhanquez@kneesa.uk.xensource.com [Sat, 18 Mar 2006 13:56:34 +0000 (13:56 +0000)]
Fix a race that crash domU by calling xenbus_probe twice if it receive event
between xs_init and setting xenbus_running

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoMove __do_IRQ() definition to ia64 header file where it belongs.
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 10:12:45 +0000 (11:12 +0100)]
Move __do_IRQ() definition to ia64 header file where it belongs.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge with xen-ia64-unstable.hg
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 09:59:11 +0000 (10:59 +0100)]
merge with xen-ia64-unstable.hg

20 years agoUpdate to Linux 2.6.16-rc6.
cl349@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 00:12:26 +0000 (00:12 +0000)]
Update to Linux 2.6.16-rc6.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16-rc5/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc5/net-csum.patch => patches/linux-2.6.16-rc6/net-csum.patch
rename : patches/linux-2.6.16-rc5/pmd-shared.patch => patches/linux-2.6.16-rc6/pmd-shared.patch
rename : patches/linux-2.6.16-rc5/smp-alts.patch => patches/linux-2.6.16-rc6/smp-alts.patch

20 years agomerge
awilliam@xenbuild.aw [Fri, 17 Mar 2006 22:37:28 +0000 (15:37 -0700)]
merge

20 years ago[IA64] VT-i Domains should use same hvm builder as VT-x
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:26:24 +0000 (14:26 -0700)]
[IA64] VT-i Domains should use same hvm builder as VT-x

Signed-off-by: Fred Yang <fred.yang@intel.com>
20 years ago[IA64] -mconstant-gp gcc/as option added.
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:23:43 +0000 (14:23 -0700)]
[IA64] -mconstant-gp gcc/as option added.

Thus gp is not saved/restored before calls, saving memory and bundles.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] zero_page_memmap_ptr removed (was unused).
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:21:56 +0000 (14:21 -0700)]
[IA64] zero_page_memmap_ptr removed (was unused).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] fixed a vcpu_translate bug
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:06:20 +0000 (14:06 -0700)]
[IA64] fixed a vcpu_translate bug

There are some below code segments in guest OS
1.     Rsm psr.dt
       ...
2.     itc.d r18
       ...
3.     rfi

After executing instruction 1, domain is in metaphysical mode.
When executing instruction 2, VMM gets control to emulate this
instruction. Firstly VMM will try to get opcode, which may
trigger a tlb miss. At this time domain is in metaphysical mode
and the fault address is in region 5. vcpu_translate handles this
as normal guest metaphysical mode.

It's not correct; sometimes this will make dom0 hang.

cpu_translate should handle this situation as if
guest is not in metaphysical mode.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
20 years ago[IA64] setting rr0 is not correctly emulated
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:44:48 +0000 (13:44 -0700)]
[IA64] setting rr0 is not correctly emulated

When guest is not at metaphysical mode, VMM should
set machine rr0.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
20 years ago[IA64] Remove "#define page_info page"
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:23:59 +0000 (13:23 -0700)]
[IA64] Remove "#define page_info page"

This patch removed "#define page_info page" in asm-ia64/config.h.
We tested compilation, booting dom0, and creation/destruction domU.

This patch is "step3" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years ago[IA64] Remove header files where "page" is used
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:23:01 +0000 (13:23 -0700)]
[IA64] Remove header files where "page" is used

This patch is "step2" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years agoFix VMX cpuid handling when EAX == 4.
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 15:25:04 +0000 (16:25 +0100)]
Fix VMX cpuid handling when EAX == 4.
When eax == 4, ecx should contain cache level.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoAllows the hypervisor to build without warnings (wisely considered
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:45:46 +0000 (11:45 +0100)]
Allows the hypervisor to build without warnings (wisely considered
errors with/-Werror) when perfc_arrays are enabled in xen/Rules.mk.

Signed-off-by: David Lively <dlively@virtualiron.com>
20 years agoFix the gzip size extraction in xc_inflate_buffer(). Extract
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:44:55 +0000 (11:44 +0100)]
Fix the gzip size extraction in xc_inflate_buffer(). Extract
bytes as unsigned quantities.

Signed-off-by: David Lively <dlively@virtualiron.com>
20 years agoFix sched_sedf adjdom to properly clamp the period max value.
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:00:46 +0000 (11:00 +0100)]
Fix sched_sedf adjdom to properly clamp the period max value.
Remove temporary debug tracing.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDeclare inline function as 'static inline', not 'extern inline'.
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 09:57:28 +0000 (10:57 +0100)]
Declare inline function as 'static inline', not 'extern inline'.
Fixes the ioemu build which was broken on some systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoReinitialize producer and consumer index to 0 if indexes corruption are detected
vhanquez@kneesa.uk.xensource.com [Fri, 17 Mar 2006 10:03:37 +0000 (10:03 +0000)]
Reinitialize producer and consumer index to 0 if indexes corruption are detected
in XenBus.
Prevent a kernel infinite loop and add more recovering ability.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoSubstitute kmalloc+memset by kzalloc where possible
vhanquez@kneesa.uk.xensource.com [Fri, 17 Mar 2006 09:52:05 +0000 (09:52 +0000)]
Substitute kmalloc+memset by kzalloc where possible

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years ago[IA64] disable handling of legacy privified insns
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:22:37 +0000 (12:22 -0700)]
[IA64] disable handling of legacy privified insns

Disable handling of privified insns into another instructions.
This is controled by a static constant.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] remaining privified insns removed
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:20:59 +0000 (12:20 -0700)]
[IA64] remaining privified insns removed

Privified insns replaced by hyperprivops.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] new hyperprivop
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:19:08 +0000 (12:19 -0700)]
[IA64] new hyperprivop

Missing hyperprivop added.
These were privified insn without hyperprivop.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] postat tool
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:13:23 +0000 (12:13 -0700)]
[IA64] postat tool

Small utility to display and clear privop statistics.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] Changed from page to page_info
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:10:22 +0000 (12:10 -0700)]
[IA64] Changed from page to page_info

This patch changed from "struct page" to "struct page_info" in the below files.
 - xen/arch/ia64/xen/domain.c
 - xen/arch/ia64/xen/mm_init.c
 - xen/arch/ia64/xen/xenmem.c
 - xen/arch/ia64/xen/xenmisc.c
 - xen/include/asm-ia64/config.h
 - xen/include/asm-ia64/mm.h

This patch is "step1" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years ago[IA64] use of max_addr= & command line
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:06:48 +0000 (12:06 -0700)]
[IA64] use of max_addr= & command line

Use 'max_addr' option to limit the amount of physical memory.  The
default is 4G (the same as the previous hard limit).  The hard-coded
limit is removed.  dom0_command_line now contains the cmdline for
dom0 linux.  saved_command_line now contains the cmdline for Xen (it
is used in Xen).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] fix AFLAGS in Rules.mk
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:02:39 +0000 (12:02 -0700)]
[IA64] fix AFLAGS in Rules.mk

Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
20 years agoClean up HVM relinquish_guest_resources interface and implementation.
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 18:36:28 +0000 (19:36 +0100)]
Clean up HVM relinquish_guest_resources interface and implementation.
Ensure we only unmap the shared I/O page after killing all timers
whose handlers may reference that page.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd Summagraphics Tablet emulation for VNC users. The current PS/2 emulation
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 17:57:54 +0000 (18:57 +0100)]
Add Summagraphics Tablet emulation for VNC users.  The current PS/2 emulation
is unusable under VNC since a PS/2 mouse provides deltas while VNC only
provides absolute coordinates.  Fortunately, the Summagraphics Tablet provides
absolute coordinates and works perfectly with VNC.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
20 years agoChange the VNC main input loop delay from 1 second down to 10
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 17:43:07 +0000 (18:43 +0100)]
Change the VNC main input loop delay from 1 second down to 10
msec.  The 1 second delay was causing significant latency problems
with the mouse while there is no measurable overhead in lowering the
delay down to 10 msec.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
20 years agoAdd a shadow VRAM to track changes to the real VRAM. When the guest
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 17:41:01 +0000 (18:41 +0100)]
Add a shadow VRAM to track changes to the real VRAM.  When the guest
OS was given write access to the VRAM the device model tracked all
VRAM changes by updating the entire screen on every output loop,
causing significant overhead (a CPU bound loop in a guest slows down
by about 35%) and significant mouse latency (VNC uses the same data
path for mouse events and video updates).  With the shadow VRAM only
modified pages need to be updated and the comparison of the shadow
VRAM to the real VRAM only adds ~4% overhead while eliminating the
mouse latencies.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
20 years agoExplicitly include time.h to get gettimeofday declaration.
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 11:34:27 +0000 (12:34 +0100)]
Explicitly include time.h to get gettimeofday declaration.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agopcifront poll loop now checks gettimeofday rather than jiffies,
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 11:31:16 +0000 (12:31 +0100)]
pcifront poll loop now checks gettimeofday rather than jiffies,
as the latter does not increase while interrupts are disabled.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoImplement console for Mini-os and also fix 2 bugs:
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 19:25:50 +0000 (20:25 +0100)]
Implement console for Mini-os and also fix 2 bugs:
a) in initialising new page table frames
b) in initialising idle thread.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
20 years agoMake asm macros use the generally accepted comma-separated arg-passing style.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 19:22:31 +0000 (20:22 +0100)]
Make asm macros use the generally accepted comma-separated arg-passing style.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUpdate interface documentation to include sched_op_new hypercall
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 18:19:22 +0000 (19:19 +0100)]
Update interface documentation to include sched_op_new hypercall
and clean up the style a bit. Also clean up the sched_op_new
description in the sched.h public header.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago[IA64] cleanup in dom_fw.c
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:33:23 +0000 (08:33 -0700)]
[IA64] cleanup in dom_fw.c

Unused code removed.
A few 'static' added.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] LID virtualization
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:28:23 +0000 (08:28 -0700)]
[IA64] LID virtualization

Virtualize lid for domU.
LSAPIC table cleaned for SMP-g.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] dummy IO memmap entry
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:22:03 +0000 (08:22 -0700)]
[IA64] dummy IO memmap entry

Create a dummy IO ports memmap entry for domU, so that
IO accesses are trapped by Xen.  Otherwise, they could
pollute memory.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] remove warning of xen_init()
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:20:28 +0000 (08:20 -0700)]
[IA64] remove warning of xen_init()

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
20 years agoRemove unnecessary cr4 handling in vmx_set_cr0.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 12:35:43 +0000 (13:35 +0100)]
Remove unnecessary cr4 handling in vmx_set_cr0.
1) on x86_32, PAE should never be enabled in guest cr4, since we only
support pure IA32 VMX guest.
2) on x86_32p or x86_64, PAE should always be enabled in guest cr4,
since even pure IA32 guest uses PAE paging mode actually.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
20 years agomerge
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 12:24:59 +0000 (12:24 +0000)]
merge

20 years agofix buffer overflow in print XS_DEBUG command
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 12:24:34 +0000 (12:24 +0000)]
fix buffer overflow in print XS_DEBUG command

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agomove XS_DEBUG code into a proper function
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 12:08:10 +0000 (12:08 +0000)]
move XS_DEBUG code into a proper function

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoMake MTU rx check in netfront more permissive to allow for 8021q vlan tagging.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 11:52:33 +0000 (12:52 +0100)]
Make MTU rx check in netfront more permissive to allow for 8021q vlan tagging.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove unused macro VMX_CPU_STATE_PG_ENABLED.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 11:41:58 +0000 (12:41 +0100)]
Remove unused macro VMX_CPU_STATE_PG_ENABLED.
Use vmx_paging_enabled() instead.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoFix 64-bit build.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 11:40:42 +0000 (12:40 +0100)]
Fix 64-bit build.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDo not BUG when receiving unexpected message type from xenbus
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 11:09:45 +0000 (11:09 +0000)]
Do not BUG when receiving unexpected message type from xenbus
print a warning and discard the query

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoThere is no need to pin page tables when XENFEAT_writable_page_tables
Ian.Campbell@xensource.com [Wed, 15 Mar 2006 10:33:43 +0000 (10:33 +0000)]
There is no need to pin page tables when XENFEAT_writable_page_tables
is enabled.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
20 years agoFix x86/64 HVM assertion failure.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 10:09:20 +0000 (11:09 +0100)]
Fix x86/64 HVM assertion failure.

Signed-off-by: Xin Li <xin.b.li@intel.com>